import React from 'react';
import { Cascader } from 'antd';
import './stoptypestyled.css'; 
import store from '../../store/index';
const options = [
  {
    value: '地下封闭式停车场',
    label: '地下封闭式停车场',
  },
  {
    value: '露天开放式停车场',
    label: '露天开放式停车场',
  },
  {
    value: '立体停车场',
    label: '立体停车场',
  }
];

function onChange(value) {
  // console.log(value);
  store.dispatch({type:"STOPTYPE",stopdata:value[0]});
}
const StopType = () => (
  <div className="stoptype">
    <Cascader options={options} onChange={onChange} placeholder="请选择" />
  </div>
);

export default StopType;